t1a09-variables-caleb

Show correct use of const, var, let and integer, character, boolean, float, and string.



examples of ints, chars, bools, floats, and strings



Adds two integers together via parseInt()






...



Will display the last character typed into this text box


Last Character Typed: ... and the total number of characters is: 0
the script for this character box display uses slice to get the last character of the string, its usually used with arrays but strings are treated like arrays of characters...



This button toggles the light

Console shows bool state


The light is off



Adds two floats together via parseFloat()






...



String Methods






...